package com.baizhi.controller;

import com.baizhi.dto.PowerDto;
import com.baizhi.service.PowerService;
import com.baizhi.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;


/**
 * Created by Administrator on 2019/4/3.
 */
@Controller
@RequestMapping("/Power")
public class PowerController {
    @Autowired
    private PowerService powerService;


    @RequestMapping("/selectPowerTree.do")
    @ResponseBody
    public List<PowerDto> selectRoleTree(String roleName){
        return powerService.selectRoleTree(roleName);
    }


}
